#include "album.h"

album::~album()
{
	for(list<title*>::iterator i = _titles.begin(); 
	    i != _titles.end(); ++i) {
		delete (*i);
	}
}

string album::to_xml() const 
{
	string xml = "<album name=\"" + _name + "\">";
	for(list<title*>::const_iterator i = _titles.begin(); 
	    i != _titles.end(); ++i) {
		xml += (*i)->to_xml();
	}
	xml += "</album>";

	return xml;
}

